﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BookShop.DAL;
using BookShop.Model;

namespace BookShop.BLL
{
   public static class CategoriesBLL
    {
        public static List<CategoryInfo> Getcategories()
        {
            return CategoriesDAL.GetCategories();
        }
        public static CategoryInfo GetCategorybyID(int cateid)
        {
            return CategoriesDAL.GetCategorybyID(cateid);
        }
        public static int UpdateCategory(CategoryInfo category)
        {
            return CategoriesDAL.UpdateCategory(category);
        }
        ///<summary>
        ///图书种类删除，DelFlag更新为1
        /// </summary>
        /// 
        public static int DelCategory(int categoryid)
        {
            return CategoriesDAL.DelCategory(categoryid);
        }
    }
}
